__author__ = 'tengxue'

import time
import calendar

ticks = time.time()

print("ticks is ",ticks)

localtime=time.localtime(time.time())

print("localtime is ",localtime)
print("year is ",localtime[0])
#自己编写格式化
simpleData=str(localtime[0])+"-"+str(localtime[1])+"-"+str(localtime[2])
print("simpleDataformate is ",simpleData)

localtime=time.asctime(time.localtime(time.time()))
print("asctime is ",localtime)
#自带的格式化方法
simpleData=time.strftime("%Y-%m-%d",time.localtime(time.time()))

print("simpleDataformate is ",simpleData)
#打印日历
date=calendar.month(2015,1)

print(date)

